package com.zhousb.deviceManager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhousb.deviceManager.model.entity.ImOrder;
import com.zhousb.deviceManager.model.so.OrderSo;
import com.zhousb.deviceManager.model.vo.OrderLogVo;
import com.zhousb.deviceManager.model.vo.OrderVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ImOrderMapper extends BaseMapper<ImOrder> {

    IPage<OrderVo> page(Page page, @Param("so") OrderSo so, @Param("userId") String userId,@Param("isManager") boolean isManager,@Param("targetOrderIds") List<Long> targetOrderIds);
void updateAfloatOrder(@Param("productId")Long productId);

   List<OrderLogVo> logByProduct(@Param("productId")String productId, @Param("orderStatus")String orderStatus, @Param("startTime")String startTime, @Param("endTime")String endTime, @Param("userId")String userId);
}
